package com.sunrise.generico.util;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.io.FileUtils;


public class FileUtil {
	
	
	public static boolean existeArquivo(String path){
		
		
		return false;
	}
	
	
	public static void criarDiretorio(){
		
	}
	
	public static void criarArquivo(){
		
	}
	
	public static void copiarInputStreamParaArquivo(InputStream is, File file) throws IOException{
		try {
			FileUtils.copyInputStreamToFile(is, file);
		} catch (IOException e) {
			throw new IOException("falhaCriarArquivo");
		}
	}

}
